using System;
using AntEater.ComponentModel.BuildElements;

namespace AntEater.ComponentModel.Validation
{
    /// <summary>
    /// Provides a validation message.
    /// </summary>
    [Serializable]
    public class ValidationResult : Message
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="T:ValidationResult"/> class.
        /// </summary>
        /// <param name="text">The text.</param>
        /// <param name="type">The type.</param>
        /// <param name="buildElement">The build element.</param>
        public ValidationResult(string text, MessageType type, IBuildElement buildElement)
            : base(text, type, MessageCategory.Validation, buildElement) {
        }
    }
}
